package com.ndood.polling.app.properties;

/**
 * 自定义属性配置类SecurityProperties
 */
import org.springframework.boot.context.properties.ConfigurationProperties;

import lombok.Data;

/**
 * ndood polling配置主类
 */
@Data
@ConfigurationProperties(prefix = "ndood.polling")
public class PollingProperties {
	// 当面付最大查询次数和查询间隔（毫秒）
	private Integer max_query_retry = 5;
	private Integer query_duration = 5000;

	// 当面付最大撤销次数和撤销间隔（毫秒）
	private Integer max_cancel_retry = 3;
	private Integer cancel_duration = 2000;
	
	private Boolean IsDbGlobalConfig = false;
	
	/**
	 * 支付配置
	 */
	private PayConfigProperties pay = new PayConfigProperties();
	/**
	 * ID
	 */
	private IdWorkerProperties id = new IdWorkerProperties();
	
}